
#ifndef __SEQLISTINDEX_H_  
#define __SEQLISTINDEX_H_  
#define ERROE_CHECK(ret, num, msg)     {                                      if (ret == num)                    {                                      perror(msg);                    return ret;                     }                              } 
#define LEN 16
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
typedef int type;
typedef struct seqListIndex
{
    type data[LEN];
    int count;
}LT;

//init
LT *initList();
//add

void addlistVal(LT *header, int val);
//del
int delListVal(LT *header,int index);
//select
int selectListVal(LT *header,int index);
//change
void changeListVal(LT *header,int index,int val);
//isEmpty
bool isEmpty(LT *header);
//show
void showListVal(LT *header);
//free
void freeList(LT **header);
//insert
void insertValIndex(LT *header,int index,int val);
#endif
